#include "types.h"
#include "stat.h"
#include "user.h"


void
procPrint(void)
{
	int j;
	for (j=1; j<=50; j++)
	{
		printf(1,"process %d prints for the %d time\n",getpid(),j);
	}
}



void 
Gsanity(void)
{
	int pid;
	printf(1,"Father pid is %d\n", getpid());
	sleep(1000);
	pid = fork();
	procPrint();
	wait();
}

int
main(void)
{
	Gsanity();
	exit();
}
